// 测试 Date 构造函数

let date = new Date();
console.log( date.toISOString() );

let value = 1000 * 60 * 60 * 24 * 365 * 50 ;
date = new Date( value );
console.log( date.toISOString() );

// let dateString = '1999-12-31T23:59:00Z';
let dateString = '1999-12-31T23:59:00';
date = new Date(dateString);
console.log( date.toLocaleDateString() , date.toLocaleTimeString() );

// new Date(year, monthIndex [, day [, hours [, minutes [, seconds [, milliseconds]]]]]);
date = new Date( 1999 , 11 , 31 , 23 , 59 );
console.log( date.toISOString() );